<!DOCTYPE html>
<html lang="en">
<head>
    <!--
    @Author 硕鼠
    @Date 2020/4/16 16:43
    @Version 1.0
    @Description Json对象
  -->
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    var user = {
        name:"xiaolun",
        age:"3"
    };
    console.log(user);
    var json = JSON.stringify(user);
    console.log(json);
    var obj = JSON.parse(json);
    console.log(obj);
</script>

</body>
</html>